package org.angelica.core.common;

/**
 * 基础常量类
 * @author aizhimin
 */
public class Constant {

    /**
     * 有效请求时间间隔 120s
     */
    public static final int REQUEST_EXPIRED_TIME = 120;
    /**
     * 登录态请求头定义
     */
    public static final String HEADER_AUTH = "authorization";

    /**
     * jwt token 有效时长30天
     */
    public static final long JWT_TTL = 30*24*60*60*1000L;
    /**
     * jwt refresh token 有效时长90天
     */
    public static final long JWT_REFRESH_TTL = 90*24*60*60*1000L;

    /**
     * 当前用户ID定义
     */
    public static final String CURRENT_USER_ID = "currentUserId";

    /**
     * 分页页码
     */
    public static final int PAGE_SIZE_5 = 5;
    public static final int PAGE_SIZE_10 = 10;
    public static final int PAGE_SIZE_15 = 15;
    public static final int PAGE_SIZE_20 = 20;
}
